package com.szu.subject.ui.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.szu.subject.domains.Course;
import com.szu.subject.domains.User;

@Mapper
public interface UserMapper {
	public User getUserByPK(Long id);

	public int createUser(User user);

	public int updateUser(User user);

	public int deleteUser(Long id);

	public List<User> getAllUsers();
	
	public int batchCreateUsers(List<User> users);

	public int batchUpdateUsers(List<User> users);

	public int batchDeleteUsers(List<Long> ids);

	public User getUserByAccount(String account);
}
